import request from '@/utils/request'

// 查询题目标签关联列表
export function listQuestionTagRelation(query) {
  return request({
    url: '/exam/questionTagRelation/list',
    method: 'get',
    params: query
  })
}

// 查询题目标签关联所有列表
export function listAllQuestionTagRelation(query) {
  return request({
    url: '/exam/questionTagRelation/listAll',
    method: 'get',
    params: query
  })
}

// 查询题目标签关联详细
export function getQuestionTagRelation(id) {
  return request({
    url: '/exam/questionTagRelation/getInfo/' + id,
    method: 'get'
  })
}

// 新增题目标签关联
export function addQuestionTagRelation(data) {
  return request({
    url: '/exam/questionTagRelation/add',
    method: 'post',
    data: data
  })
}

// 修改题目标签关联
export function updateQuestionTagRelation(data) {
  return request({
    url: '/exam/questionTagRelation/edit',
    method: 'post',
    data: data
  })
}

// 删除题目标签关联
export function delQuestionTagRelation(id) {
  return request({
    url: '/exam/questionTagRelation/remove/' + id,
    method: 'get'
  })
}
